<!DOCTYPE html>
<html>
<head>
  <title><%= @store.name || "Loading..."%></title>
  <%= action_cable_meta_tag %>
  <%= stylesheet_link_tag    'sale', media: 'all' %>
  <%= javascript_include_tag 'sale' %>
  <%= csrf_meta_tags %>

  <%= link_stylesheet_by_namespace%>
  <%= include_javascript_by_namespace %>
  <%= yield :pre_assets %>
</head>
<body>
<!-- devise destory -->
<!-- <li><%= link_to '登出', destroy_user_session_path, method: :delete %></li> -->

<div class="main" id="main">
  <%= render "/layouts/sale_header"%>

  <div class="content-main">
    <div class="left_sidebar">
      <ul>
        <% @store.product_categories.each do |category|%>
          <li>
            <%= link_to category.name, sales_product_category_products_path(category, store_id: @store_id), class: "js-a-link-text-width", title: category.name %>
          </li>
        <% end %>
      </ul>
    </div>
    <div class="sales-content body-sales-products">
      <%= yield %>
    </div>
  </div>

  <!-- <footer class="footer">
    <div class="container" style="background-color: red;">

    </div>
  </footer> -->
  <div class="footer">
    <footer class="footer" style="margin-top:auto;">
      <div class="footer-container" style="">
        @pinee.xin
        <p>
          ICP号：浙ICP备17000225
        </p>
        <p>
          Copyright © 2016 - 2017  pinee.xin 版权所有
        </p>
      </div>
    </footer>
  </div>

</div>




<!-- 模态框（Modal） -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="modalLabel" aria-hidden="true" style="display:none">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" id="modal_closeBtn" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title" id="modalLabel">提 醒</h4>
      </div>
      <div class="modal-body"></div>
      <div class="modal-footer">
        <button type="button" class="btn btn-primary" id="modal_okBtn" data-dismiss="modal">确 定</button>
        <button type="button" class="btn btn-primary" id="modal_cancelBtn" data-dismiss="modal">取 消</button>
      </div>
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal -->

</body>
</html>
